home *** CD-ROM | disk | FTP | other *** search
/ New Masters of Flash / New Masters of Flash.iso / pc / MOVIES / 16.dir / 00269_Text_text06.txt < prev    next >
Text File  |  2000-10-01  |  635b  |  9 lines

  1. Now find the last frame of the animation of the queen rising up. Add a blank key frame to the ActionScript layer. In that frame you need to add these action scripts:
  2.  
  3. updown = ΓÇ£1ΓÇ¥;
  4. /:score = /:score + 1;
  5.  
  6.  
  7. This will stop the queen once itΓÇÖs raised and increase score by 1 (A score of eight is going to be a win), and also set the updown variable to 1, which will let us know that this movieΓÇÖs queen is up. 
  8.  
  9. NOTE ON VARIABLES: placing a /: before a variable will set that variable in the main movie. Without that /:, the variable would be set in the movie clip only. This, again, will make more sense a little later on.